<?php
	$this->pageTitle=Yii::app()->name . ' - Контакты';
	$this->breadcrumbs=array(
		'Контакты',
	);
?>

<h1>Сообщить о злоупотреблении</h1>

<?php if(Yii::app()->user->hasFlash('contact')){ ?>
	<div class="flash-success">
		<?php echo Yii::app()->user->getFlash('contact'); ?>
	</div>
<?php }else{ ?>
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'contact-form',
		'enableAjaxValidation'=>false,	
		'htmlOptions'=>array('rel' =>Yii::app()->createUrl('profile/index', array('id'=>Yii::app()->request->getParam('id')))),
	)); ?>
		<div class="u_cat also">
			<table class="flds_form">
				<tbody>
					<tr>
						<td class="flds_form_l">
							<?php echo $form->labelEx($model,'name'); ?>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<?php echo $form->textField($model,'name', array('class'=>'settings_fld')); ?>
								</div>
								<?php echo $form->error($model,'name'); ?>
							</div>
						</td>
					</tr>	
					<tr>
						<td class="flds_form_l">
							<?php echo $form->labelEx($model,'email'); ?>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<?php echo $form->textField($model,'email', array('class'=>'settings_fld')); ?>
								</div>
								<?php echo $form->error($model,'email'); ?>
							</div>
						</td>
					</tr>	
					<tr>
						<td class="flds_form_l">
							<?php echo $form->labelEx($model,'subject'); ?>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<?php echo $form->textField($model,'subject', array('class'=>'settings_fld')); ?>
								</div>
								<?php echo $form->error($model,'subject'); ?>
							</div>
						</td>
					</tr>	
					<tr>
						<td class="flds_form_l">
							<?php echo $form->labelEx($model,'body'); ?>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<?php echo $form->textArea($model,'body', array('class'=>'settings_fld', 'rows'=>6, 'cols'=>50)); ?>
								</div>
								<?php echo $form->error($model,'body'); ?>
							</div>
						</td>
					</tr>
					
					<?php /*if(extension_loaded('gd')){ ?>
						<tr>
							<td class="flds_form_l">
								<?php echo $form->labelEx($model,'verifyCode'); ?>
							</td>
							<td class="flds_form_r">
								<?php $this->widget('CCaptcha'); ?>
								<div class="flds_border">
									<div class="flds_border_inside">
										<?php echo $form->textField($model,'verifyCode', array('class'=>'settings_fld')); ?>
									</div>
								</div>								
							</td>
						</tr>						
					<?php }*/ ?>
				</tbody>
			</table>
		</div>	
		
		<div class="row submit">
			<?php echo CHtml::submitButton('Отправить', array('class'=>'green_btn tac')); ?>
		</div>				
			
	<?php $this->endWidget(); ?>
<?php } ?>